<?php
declare (strict_types = 1);

namespace app\mini\middleware;

class MiniProgramAccess
{
    /**
     * 处理请求
     *
     * @param \think\Request $request
     * @param \Closure       $next
     * @return Response
     */
    public function handle($request, \Closure $next)
    {  
        // if( $request->verifyTokenRes != true || empty($request->fansInfo) || $request->token != $request->fansInfo['token'] ){
        //     return json([
        //         'code' => 401,
        //         'data' => [],
        //         'msg'  => 'Token校验失败'
        //     ]);
        // }
        return $next($request);
    }

}
